package cn.cytong.util.ext

import org.junit.Test

import org.junit.Assert.*

/**
 * Created by orangeJ on 2017/6/4.
 */
class StringKtTest {
    @Test
    fun grouped() {
        val content = "123457"
        val grouped = content.grouped()

        assertEquals(3, grouped.size)
        assertEquals("12", grouped[0])
        assertEquals("57", grouped[2])
    }

}